/*
Ningyu Lei
*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.index-page {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-image: url("php/Group13 ASS1/imgs/background.jpg");
    background-size: cover;
    background-position: center;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f5e1e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin-right: 3rem;
}

nav a {
    color: #864747;
    text-decoration: none;
    padding: 1rem;
    font-weight: bold;
}

nav a:hover{
    background-color: #ffffff;
}



main {
    padding: 20px;
}

section {
    margin-bottom: 20px;
}

.search-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    background-color: rgba(0, 0, 0, 0.326);
}

.search-content {
    text-align: center;
    color: #fff;
}

.search-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}



.search-form input[type="text"] {
    padding: 10px;
    width: 300px;
}

.search-form button {
    padding: 10px 20px;
    background-color: #864747;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}



.product-list article {
    background-color: #f5f5f5b3;
    padding: 40px;
    text-align: center;
    width: 100%; 
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-list h2 {
    font-size: 1.25rem;
    margin: 1rem 0;
}

.product-list .price {
    font-weight: bold;
}

.product-list img {
    width: 100px;
    margin-right: 10px;
}

.product-list h2,
.product-list p,
.product-list .price,
.product-list button {
    margin: 0;
    flex: 1;
}

button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
}

button:focus{
    background-color: #000000a2;
}

.about-page{
    font-family: Arial;
    margin: 0 auto;
    background-size: cover;

    width: 100%;
    padding-top: 60px;
    background-color: #fafaf2;
}

table{
    margin-left: 20px;
}

.about-ul {
    margin-left: 30px;
    margin-right: 30px;
    font-size: 16px;
    line-height: 2;
    color: #000000;
}

ol{
    margin-left: 30px;
}

/*
Mengxue Sun
*/
.login-page{
    background-image: url('php/Group13 ASS1/imgs/background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.container{
    width: 50%;
    height: 350px;
    position: fixed;
    top: 50%;
    left: 50%;
    border-radius: 15px;
    box-shadow: 0 0 15px #f5e1e1;
    transform: translate(-50%,-50%);
}

.container img{
    width: auto;
    height: auto;
    max-width: 50%;
    min-height: 100%;
    border-top-left-radius:10px ;
    border-bottom-left-radius: 10px;
    -webkit-user-drag: none;
    object-fit: cover;
}

.left{
    opacity: 0.8;
    animation-name: mountain;
    animation-duration: 12s;
}

@keyframes mountain{
    0%   {opacity: 0;}
    25%  {opacity: 0.4;}
    50%  {opacity: 0.8;}
    100% {opacity: 1;}
}

.right{
    display: block;
    width: 50%;
    height: 100%;
    float: right;
    text-align: center;
    background-color: rgb(246, 239, 239);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.right span.logo{
    margin-top: 22px;
    margin-bottom: 10px;
    display: block;
}


.contents{
    height: 80%;
}


.contents input{
    width: 75%;
    height: 20px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
}

.verify{
    position: relative;
    width: 100%;
}

.verify input{
    width: 75%;
}

.verify button.emit_verify{
    height: 30px;
    position: absolute;
    right: 10%;
    outline: none;
    margin-top: 14px;
    padding: 5px;
    border: none;
    background-color: white;
    color: #f5e1e1;
    border-radius: 8px;
}

.contents button.login{
    border: none;
    outline: none;
    margin-top: 20px;
    width: 82%;
    height: 18%;
    padding: 5px;
    border-radius: 10px;
    font-size: 16px;
    color: white;
    background-image: linear-gradient(to right,#efb8b8,#f1a4a4);
}


.contents span.footer{
    display: block;
    margin-top: 10px;
}
 
span a{
    font-size: 10px;
    color: rgb(172, 152, 152);
}

span a:first-child{
    margin-left: 10%;
    float: left;
}

span a:last-child{
    margin-right: 10%;
    float: right;
}
 
input::placeholder{
    font-size: 14px;
}

span a:hover{
    color: #d28d8d;
}

div button.login:hover{
    background-image: linear-gradient(to right,#ef8888,#ef8888);
}

/*
Jiaqi Ding
*/
.products{
	padding-top: 75px;
	margin: 0% ;
}

.productsLine{
    float: left;
    width: 100%;
    display: flex;
    border: 7px #f5e1e1 solid;
    box-shadow: 0 0 15px #f5e1e1;
}

.overview{
    width: 450px;
    height: 450px;
}

.colorChoice ul li{
    list-style: none;
    margin: 20px 15px;
    float: left;
}

.colorChoice ul li img{
    border: 3px white solid;
    width: 80px;
    height: 80px;
}

.colorChoice ul li img:hover{
    width:100px;
    height: 100px;
    border: 2px #f5e1e1 solid;
    transition: width 0.5s ease-out, height 0.5s ease-out;  
}

.content{
    padding-left: 100px;
    padding-right: 150px;
    height: 500px;
    overflow: auto;
    transition: height 2s ease-out;
}

.price{
    color: brown;
    font-size: 200%;
}

.text{
    color: black;
    font-size: 120%;
}

.expandedContent{
    display: none;  
    margin-top: 10px; 
}

#clickButton {  
    display: block;  
    margin-top: 10px;  
}

/*
Feiran Fu
*/
.register-page{
    font-family: Arial, sans-serif;
    background: url("php/Group13 ASS1/imgs/background.jpg") no-repeat fixed 0 0;
    margin: 0 auto;
    background-size: cover;
    background-position: center center;
    width: 100%;
}

.para{
    font-size: 14px;
    font-weight: lighter;
    text-align: center;
}
.rg_layout {
    width: 900px;
    height:300px;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 0 15px #f5e1e1;
    margin-top: 100px;
    margin-left:260px;
}        
.rg_left {
    float: left;
    margin: 15px;
}
.rg_center {
    float: left;
}
.rg_right {
    float: right;
    margin: 15px;
}
.rg_left > p:first-child {
    color:black;
    font-size: 20px;
}
.rg_left > p:last-child {
    color:#A6A6A6;
    font-size: 20px;
}
.rg_right > p:first-child {
    font-size: 15px;
}

.rg_right p a {
    color:pink;
}
.td_left {
    width: 100px;
    height: 45px;
    text-align: right;
}
.td_right {
    padding-left: 50px ;
}
.box{
    position: relative;
    padding-left: 0 ;
}
.box img{
    position: absolute;
    right: 5px;
    top:2px;
    width: 24px;
    height: 24px;
}
		
#username, #password, #password2, #email, #name,#address, #telphone, #birthday, #checkcode {
    width: 251px;
    height: 32px;
    border: 1px solid #A6A6A6;
    border-radius: 5px;
    padding-left: 10px;
}
#checkcode {
    width: 110px;
}       
#img_check {
    height: 32px;
    vertical-align: middle;
}
#btn_sub {
    width: 150px;
    height: 40px;
    color: white;
    border: 1px solid white ;
    border-radius: 8px;
    background-image:linear-gradient(to right,#efb8b8,#f1a4a4) ;
    cursor: pointer;
}
#btn_subs {
    width: 150px;
    height: 40px;
    color: white;
    border: 1px solid white ;
    background-image:linear-gradient(to right,#efb8b8,#f1a4a4) ;
    border-radius: 12px;
    cursor: pointer;
}

div #btn_sub:hover{
    background-image: linear-gradient(to right,#ef8888,#ef8888);
}

div #btn_subs:hover{
    background-image: linear-gradient(to right,#ef8888,#ef8888);
}

.error {
    color:#d28d8d;
}
#td_sub {
    padding-left: 150px;
}

@media (max-width:800px){
    .panel{flex-direction: column;}
}
